export const isLoadingReceduer = (prevState = {
  loading: true
}, action) => {
  const { type, payload } = action
  switch (type) {
    case 'change-loading':
      const newState = { ...prevState }
      newState.loading = payload
      return newState
    default:
      return prevState
  }
}